<!DOCTYPE html>
<html>

<head>
	<title>	{$article->post_title}</title>
	<meta name="keywords" content="{$site_info.site_seo_keywords|default=''}" />
	<meta name="description" content="{$site_info.site_seo_description|default=''}">
	<include file="public@head" />
	<style>
		#article_content img {
			height: auto !important;
			max-width: 100%;
		}

		#article_content {
			word-wrap: break-word;
		}
	</style>
	<hook name="before_head_end" />
</head>

<body class="body-white">
	<include file="public@nav" />
	<div class="wrapper">
		<section class="mn-sec">
			<div class="container">
				<div class="row">
					<div class="col-lg-9">
						<div class="mn-vid-sc single_video">
							<div class="vid-1">
						
								<h3>{$article->post_title}</h3>
								<hr>
								<div class="vid-info">
									<div class="vid-pr" id="article_content" style="height: unset;">
										{$article->post_content|default=''}
										<div>

										</div>
									</div>

									<div class="info-pr">
										<span><i class="fa fa-1x fa-eye" aria-hidden="true"></i> {$article->post_hits}
										</span>
										<ul class="pr_links">
											<li>
												<a data-toggle="tooltip" class="js-count-btn" data-placement="top"
													title="I like this"
													href="{:cmf_url('portal/Article/dolike',['id'=>$article->id])}">
													<i class="icon-thumbs_up_fill"></i>
												</a>
												<span>{$article->post_like}</span>
											</li>
											<li>
												<a data-toggle="tooltip" data-placement="top" title="I dislike this"
													class="js-count-btn"
													href="{:cmf_url('portal/Article/doDislike',['id'=>$article->id])}">
													<i class="icon-thumbs_down_fill"></i>
												</a>
												<span>{$article->post_dislike}</span>
											</li>
										</ul>
										<div class="clearfix"></div>
									</div>
								</div>
							</div>
							<div class="abt-mk border-bottom-0">
								<div class="info-pr-sec">
									<div class="vcp_inf cr">
										<div class="vc_hd">
											<a href="{:cmf_url('user/Profile/about',['id'=>$article->user_id])}"
												title="">
												<img src="{:cmf_get_image_url($article->user->avatar)}" alt=""
													style="height: 60px !important; height: 60px !important;">
											</a>
										</div>
										<div class="vc_info pr">
											<h4><a href="{:cmf_url('user/Profile/about',['id'=>$article->user_id])}"
													title="">{$article->user->user_nickname}</a></h4>
											<span>发表于 {:date('m',$article->published_time)} ,
												{:date('Y',$article->published_time)} </span>
										</div>
									</div>
									<ul class="chan_cantrz mt-4 mr-4">
										<a href="{:cmf_url('/user/User_follow/followUser',['id'=>$article->user_id])}"
											title="关注" class="js-count-btn">
											<img src="__TMPL__/public/assets/images/follow.png"
												class="img-fluid" />
										</a>
									</ul>
									<ul class="df-list">
										<li>
											<button data-toggle="tooltip" data-placement="top" title="收藏作品">
												<i class="icon-like"></i>
											</button>
										</li>
										<li>
											<button data-toggle="tooltip" data-placement="top" title="分享作品">
												<i class="icon-share"></i>
											</button>
										</li>
									</ul>
									<div class="clearfix"></div>
								</div>
								<div class="clearfix"></div>
							</div>
						</div>
					</div>
					<div class="col-lg-3">
						<div class="sidebar">
							<div class="vidz-prt">
								<h2 class="sm-vidz">相关推荐</h2>
								<div class="clearfix"></div>
							</div>
							<php>
								$where=[
								'post.id'=>['neq',$article->id]
								];
							</php>
							<div class="videoo-list-ab">
								<portal:articles page="3" where="$where" order="post.post_like DESC"
									categoryIds="$category.id">
									<div class="videoo">
										<div class="vid_thumbainl">
											<a
												href="{:url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}">
												<img src="{:cmf_get_image_url($vo.more.thumbnail)}" alt=""
													class="image card-img-top h-100 img-fluid">
											</a>
										</div>
										<div class="video_info">
											<h3> <a
													href="{:url('portal/Article/index',array('id'=>$vo.id,'cid'=>$vo['categories'][0]['id']))}">{$vo.post_title}</a>
											</h3>
											<h4><a
													href="{:url('user/Profile/about',['id'=>$vo.user.id])}">{$article->user->user_nickname}</a>
												<span class="verify_ic"><i class="icon-tick"></i></span>
											</h4>
											<span><i class="fa fa-1x fa-eye"
													aria-hidden="true"></i>&nbsp;{$vo.post_hits}&nbsp;&nbsp;<small
													class="posted_dt">{:func_friendly_time($vo.published_time)}</small></span>
										</div>
									</div>
								</portal:articles>
							</div>
						</div>
					</div>
				</div>
			</div>
		</section>
		<include file="public@footer" />
	</div>


	<include file="public@scripts" />
	<script>
		/**
		 * 查看图片对话框
		 * @param img 图片地址
		 */
		function imagePreviewDialog(img) {
			Wind.css('layer');

			Wind.use("layer", function () {
				layer.photos({
					photos: {
						"title": "", //相册标题
						"id": 'image_preview', //相册id
						"start": 0, //初始显示的图片序号，默认0
						"data": [ //相册包含的图片，数组格式
							{
								"alt": "",
								"pid": 666, //图片id
								"src": img, //原图地址
								"thumb": img //缩略图地址
							}
						]
					} //格式见API文档手册页
					,
					anim: 5, //0-6的选择，指定弹出图片动画类型，默认随机
					shadeClose: true,
					// skin: 'layui-layer-nobg',
					shade: [0.5, '#000000'],
					shadeClose: true,
				})
			});
		}
	</script>
	<hook name="before_body_end" />
</body>

</html>